<?php

declare(strict_types=1);

namespace think\auth\facade;

use think\Facade;
use think\auth\model\PermissionModel;

/**
 * @package think\auth\facade
 * @see \think\auth\service\Permission
 * @mixin \think\auth\service\Permission
 * @method static PermissionModel Create(string $permissionName)
 * @method static PermissionModel Fetch(int|string $permissionId)
 */
class Permission extends Facade
{
    /**
     * 获取当前Facade对应类名（或者已经绑定的容器对象标识）.
     *
     * @return string
     */
    protected static function getFacadeClass(): string
    {
        return \think\auth\service\Permission::class;
    }
}
